package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    List<Product> selectProductsPage(@Param("home") int home,@Param("limit") int limit,@Param("product") Product product);
    int getProductCount(@Param("product") Product product);

    List<Product> selectProducts(@Param("product") Product product);

    int insertProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(String prdId);

    int deleteProducts(String[] prdIds);
}
